package com.zhku.shoppingspringboot.pojo.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.convert.Jsr310Converters;
import org.springframework.security.web.PortResolverImpl;

import javax.xml.soap.SAAJResult;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @author hwy
 * @date 2025-01-02 10:31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@TableName("orders")
@ApiModel(value="orders对象", description="订单表")
public class Orders implements Serializable {
    @ApiModelProperty("订单id")
    private Long id;

    @ApiModelProperty("订单数量")
    private Integer goodsCount;

    @ApiModelProperty("总价格")
    private Float totalPrice;
    @ApiModelProperty("总实付价格")
    private Float totalPayPrice;
    @ApiModelProperty("邮费")
    private Float postFree;
    @ApiModelProperty("订单总折扣")
    private Float discount;
    @ApiModelProperty("创建时间")
    private Timestamp createTime;
    @ApiModelProperty("支付类型")
    private Integer payType;
    @ApiModelProperty("订单状态")
    private Integer orderState;
    @ApiModelProperty("商品sku的id集合")
    private String skus;
    @ApiModelProperty("支付渠道")
    private Integer payChannel;
    @ApiModelProperty("订单倒计时 剩余的秒数 -1 表示已经超时，正数表示倒计时未结束")
    private Long countDown;
    @ApiModelProperty("订单截止时间")
    private Timestamp payLatestTime;
    @ApiModelProperty("地址id")
    private Long addressId;

    @ApiModelProperty("买家留言")
    private String buyerMessage;

    @ApiModelProperty("配送类型")
    private Integer deliveryTimeType;

    @ApiModelProperty("支付时间")
    private Timestamp payTime;

    @ApiModelProperty("发货时间")
    private Timestamp consignTime;

    @ApiModelProperty("订单交易完成时间")
    private Timestamp endTime;

    @ApiModelProperty("订单交易关闭时间")
    private Timestamp closeTime;

    @ApiModelProperty("订单完成评价时间")
    private Timestamp evaluationTime;

    @ApiModelProperty("预计到货时间")
    private Date arrivalEstimatedTime;

    @ApiModelProperty("评论")
    private String Comment;

    @ApiModelProperty("用户id")
    private Integer userId;

    private static final long serialVersionUID = 1L;

}
